/* client1.c
 *	Simple program to test the network
 *      This is the client 1
 */

#include "syscall.h"


void Print(char* str){
  int c = 0;
  while((str[c] != '\n')){
    c++; 
  }
  c++;
  Write(str,c,ConsoleOutput);
	
}

int main() {
  /*Variable declaration*/
  int lock0, lock1;
  int cond0, cond1;
  int loop;
  int choice;

  Print("Client3: RELEASE LOCK 1\n");
  Release(lock1);

  Print("Client3: CREATE LOCK 1\n");
  lock1 = CreateLock(1);
 

  Print("Client3: ACQUIRE LOCK1\n");
  Acquire(lock1);
 

  Print("Client3: RELEASE LOCK 1\n");
  Release(lock1);

  Print("Done test case 2\n");


/***********************/
  /*Start test case 4 ****/
  /*
  Print("***** Start Test 4 ********\n");
  Print("Client 3: ACQUIRE LOCK 1\n");
  Acquire(lock1);
 

  Print("Client 3: CREATE CONDITION 1\n");
  cond1 = CreateCondition(1);


  Print("Client 3: WAIT LOCK 1 CONDITION 1\n");
  Wait(lock1,cond1);
  Print("Client 3: Waiting on lock 1 condition 1\n");
  */
  Print ("Done test case 4");
 
  
  Exit(0);
}
